#支持多个路径遍历
set(tool_paths  /opt/arm-gcc6.3-linux-uclibceabi/
        /opt/hisi/arm-gcc6.3-linux-uclibceabi
    )  
#设置liat值
foreach(tpath ${tool_paths}) 
     message("curpath ${tpath}")
     if(EXISTS ${tpath})
        set(tools ${tpath})
        message("set cross build tool ${tools}")
        break() 
     endif()
endforeach(tpath)   #结束

set(CMAKE_C_COMPILER ${tools}/bin/arm-gcc6.3-linux-uclibceabi-gcc)
set(CMAKE_CXX_COMPILER ${tools}/bin/arm-gcc6.3-linux-uclibceabi-g++)
set(CMAKE_SYSTEM_NAME Linux)

set(CMAKE_SYSTEM_PROCESSOR arm)

option(HAVE_REPLAY "use REPLAY MOD " ON)